
<div class="header">
	<div class="title">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BPiM</div>

	<%
		if (session.getAttribute("loggedIn") == null) {
	%>

	<div class="login">
		<form name="loginForm" method="GET" action="loginService.jsp">
			<table>
				<tr>
					<td>E-mail</td>
					<td></td>
					<td>Password</td>
					<td></td>
					<td></td>
				</tr>
				<tr>
					<td><input type="text" class="inputLogin" name="user" /></td>
					<td>&nbsp;&nbsp;</td>
					<td><input type="password" class="inputLogin" name="pass" /></td>
					<td>&nbsp;&nbsp;</td>
					<td><input type="submit" class="inputButton" value="Login" /></td>
				</tr>
			</table>
		</form>
	</div>

	<%
		} else {
	%>
	<div class="menu">
		<ul class="menuBar">
			<li><a href="../General Info/dashboard.jsp" class="menuButton">Dashboard</a></li>
			<li><a href="../User/account.jsp" class="menuButton">My Account</a></li>
		</ul>			
			
		<table class="currentUser">
			<tr>
				<td style="float:right">Current User: <a class="linkUser" href="../User/account.jsp"> <% out.println(session.getAttribute("whoIs")); %> </a></td>
				<td><form method="link" action="../User/logout.jsp">
				<input type="submit" class="inputButton" value="Logout">
				</form></td>
			</tr>
			<tr>
				<td><input type="text" class="searchProjects" name="searchProjects" /></td>
				<td><input type="submit" class="inputButton" value="Search Projects" /></td>
			</tr>
		</table>
	</div>

	<%
		}
	%>
	
</div>
<hr class="hrPrim">